home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Developer & Web Development Tools / Twistpad 1.64 / Setup.exe / $APPDATA / Carthago / Twistpad / Syntax / PHP.sdf < prev    next >
Text File  |  2007-07-08  |  12KB  |  438 lines

  1. ;PHP Syntax highlight Script for Twistpad
  2. ;1998 - 2007 ⌐ Carthago Software
  3.  
  4. [::Header::]
  5. SyntaxName=PHP
  6. delimiters=?%-+/&*=<>|!~^,.:;(){}#*"][/'
  7. Extensions=php
  8. Functions=(?i)(function\b|[A-Z]+function\b)(.*)(\(.*$)
  9. FunctionSubs=$2
  10. ;Spell Everything
  11. Spelling=1
  12. ;Except when a word is in this Contexts:
  13. SpellingContexts=1;3;4;10;14;100;101;102;103;104;106
  14. CommentChar=<!--
  15. CommentCharEnd=-->
  16. Brackets=({
  17.  
  18. ;make sure html comment is before the tag definition
  19. [ssHTMLComment]
  20. Type=StartStop
  21. Context=2
  22. Priority=10
  23. Scope=0
  24. WholeWordOnly=0
  25. First=<!--
  26. Last=-->
  27. Background=Default
  28. Foreground=C0C0C0
  29. Italic=1
  30. Outline=1
  31.  
  32. [ssphp]
  33. Type=startstop
  34. Context=15
  35. Priority=10
  36. Scope=0
  37. WholeWordOnly=0
  38. first=<?
  39. last=?>
  40. Background=Default
  41. Foreground=Default
  42. Outline=1
  43. smart=1
  44.  
  45. [ssScripts]
  46. Type=startstop
  47. Context=4
  48. Priority=8
  49. Scope=1
  50. first=SCRIPT
  51. last=/SCRIPT
  52. Background=F9F9F9
  53. Foreground=default
  54. WholeWordOnly=1
  55. Outline=1
  56.  
  57. [ssStyle]
  58. Type=startstop
  59. Context=12
  60. Priority=9
  61. Scope=0
  62. WholeWordOnly=0
  63. first=<STYLE
  64. last=</STYLE
  65. Background=FFFFF2
  66. Foreground=800000
  67. Outline=1
  68.  
  69. [ssTag]
  70. Type=StartStop
  71. Context=1
  72. Priority=7
  73. Scope=0
  74. WholeWordOnly=0
  75. First=<
  76. Last=>
  77. Background=Default
  78. Foreground=333399
  79.  
  80. [ssHTMLString]
  81. Type=StartStop
  82. Context=3
  83. Priority=19
  84. Scope=1
  85. WholeWordOnly=0
  86. First="
  87. Last="
  88. Background=Default
  89. Foreground=0000FF
  90.  
  91. [ssScriptsComment]
  92. Type=startstop
  93. Context=8
  94. Priority=9
  95. Scope=4
  96. WholeWordOnly=0
  97. first=//
  98. last=
  99. Background=F9F9F9
  100. Foreground=008000
  101. escapeChar=\
  102.  
  103. [ssScriptsString]
  104. Type=startstop
  105. Context=9
  106. Priority=19
  107. Scope=4
  108. WholeWordOnly=0
  109. first="
  110. last="
  111. Background=F9F9F9
  112. Foreground=408080
  113. escapeChar=\
  114.  
  115. [ssScriptsString2]
  116. Type=startstop
  117. Context=10
  118. Priority=19
  119. Scope=4
  120. WholeWordOnly=0
  121. first='
  122. last='
  123. Background=F9F9F9
  124. Foreground=408080
  125. escapeChar=\
  126.  
  127. [ssScriptsMultilinecomment]
  128. Type=startstop
  129. Context=11
  130. Priority=9
  131. Scope=4
  132. WholeWordOnly=0
  133. first=/*
  134. last=*/
  135. Background=F9F9F9
  136. Foreground=008000
  137. Outline=1
  138. escapeChar=\
  139.  
  140. [ssScriptsBrackets]
  141. Type=startstop
  142. Context=4
  143. Priority=8
  144. Scope=4
  145. WholeWordOnly=0
  146. first={
  147. last=}
  148. Background=F9F9F9
  149. Foreground=default
  150. Outline=1
  151. smart=1
  152.  
  153. [ssStyleBrack]
  154. Type=startstop
  155. Context=13
  156. Priority=9
  157. Scope=12
  158. WholeWordOnly=0
  159. first={
  160. last=}
  161. Background=FFFFF2
  162. Foreground=0000FF
  163. Outline=1
  164. smart=0
  165.  
  166. [ssStylesMultilinecomment]
  167. Type=startstop
  168. Context=14
  169. Priority=9
  170. Scope=12
  171. WholeWordOnly=0
  172. first=/*
  173. last=*/
  174. Background=FFFFF2
  175. Foreground=008000
  176. Outline=1
  177.  
  178. ;php stuff
  179.  
  180. [php Comment]
  181. Type=StartStop
  182. Context=16
  183. Priority=7
  184. Scope=15
  185. WholeWordOnly=0
  186. First=/*
  187. Last=*/
  188. Background=Default
  189. Foreground=008000
  190. Outline=1
  191. escapeChar=\
  192.  
  193. [php Comment 2]
  194. Type=StartStop
  195. Context=16
  196. Priority=7
  197. Scope=15
  198. WholeWordOnly=0
  199. First=//
  200. Last=
  201. Background=Default
  202. Foreground=008000
  203. escapeChar=\
  204.  
  205. [php String]
  206. Type=StartStop
  207. Context=17
  208. Priority=8
  209. Scope=15
  210. WholeWordOnly=0
  211. First="
  212. Last="
  213. Background=Default
  214. Foreground=FF0000
  215. EscapeChar=\
  216.  
  217. [ssphp String 2]
  218. Type=StartStop
  219. Context=17
  220. Priority=8
  221. Scope=15
  222. WholeWordOnly=0
  223. First='
  224. Last='
  225. Background=Default
  226. Foreground=FF0000
  227. EscapeChar=\
  228.  
  229. [ssphp Brack]
  230. Type=startstop
  231. Context=15
  232. Priority=9
  233. Scope=15
  234. WholeWordOnly=0
  235. first={
  236. last=}
  237. Background=Default
  238. Foreground=Default
  239. smart=1
  240. outline=1
  241.  
  242. [kTagNames]
  243. Type=keyword
  244. Context=100
  245. Scope=1
  246. Priority=7
  247. WholeWordOnly=1
  248. Keyword1=!DOCTYPE;A;ABBR;ACRONYM;ADDRESS;APPLET;AREA;B;BASE;BASEFONT;BDO;BGSOUND;BIG;BLINK;BLOCKQUOTE;BODY;BR;BUTTON;CAPTION;
  249. Keyword2=CENTER;CITE;CODE;COL;COLGROUP;DD;DEL;DFN;DIR;DIV;DL;DT;EM;EMBED;FIELDSET;FONT;FORM;FRAME;FRAMESET;H1;H2;H3;H4;H5;H6;HEAD
  250. Keyword3=HR;HTML;I;IFRAME;ILAYER;IMG;INPUT;INS;ISINDEX;KBD;KEYGEN;LABEL;LAYER;LEGEND;LI;LINK;LISTING;MAP;MENU;META;MULTICOL;NOBR
  251. Keyword4=NOEMBED;NOFRAMES;NOLAYER;NOSCRIPT;OBJECT;OL;OPTGROUP;OPTION;P;PARAM;PLAINTEXT;PRE;Q;S;SAMP;SCRIPT;SELECT;SERVER;SMALL;
  252. Keyword5=SOUND;SPACER;SPAN;STRIKE;STRONG;STYLE;SUB;SUP;TBODY;TEXTAREA;TITLE;TT;U;UL;VAR;WBR;XMP;TABLE
  253. Keyword6=TD;TR
  254. Keyword7=
  255. Keyword8=
  256. Keyword9=
  257. Keyword10=
  258. Keyword11=
  259. Keyword12=
  260. Keyword13=
  261. Keyword14=
  262. Keyword15=
  263. Keyword16=
  264. Background=default
  265. Foreground=800000
  266. bold=0
  267.  
  268. [kTagAttributes]
  269. Type=keyword
  270. Context=101
  271. Scope=1
  272. Priority=6
  273. WholeWordOnly=1
  274. Keyword1=TFOOT;TH;THEAD;ACCESSKEY;ACTION;ALIGN;ALINK;ALT;BACKGROUND;BALANCE;BEHAVIOR;BGCOLOR;BGPROPERTIES;BORDER;BORDERCOLOR
  275. Keyword2=BORDERCOLORDARK;ORDERCOLORLIGHT;BOTTOMMARGIN;CELLPADDING;CELLSPACING;CHECKED;CLASS;CLASSID;CLEAR;CODE;CODEBASE;CODETYPE
  276. Keyword3=COLOR;COLS;COLSPAN;COMPACT;CONTENT;CONTROLS;COORDS;DATA;DATAFLD;DATAFORMATAS;DATASRC;DIRECTION;DISABLED;DYNSRC;ENCTYPE
  277. Keyword4=EVENT;FACE;FOR;FRAME;FRAMEBORDER;FRAMESPACING;HEIGHT;HIDDEN;HREF;HSPACE;HTTP-EQUIV;ID;ISMAP;LANG;LANGUAGE;LEFTMARGIN
  278. Keyword5=LINK;LOOP;LOWSRC;MARGINHEIGHT;MARGINWIDTH;MAXLENGTH;MAYSCRIPT;METHOD;METHODS;MULTIPLE;NAME;NOHREF;NORESIZE;NOSHADE;NOWRAP
  279. Keyword6=PALETTE;PLUGINSPAGE;PUBLIC;READONLY;REL;REV;RIGHTMARGIN;ROWS;ROWSPAN;RULES;SCROLL;SCROLLAMOUNT;SCROLLDELAY;SCROLLING;SELECTED
  280. Keyword7=SHAPE;SIZE;SPAN;SRC;START;STYLE;TABINDEX;TARGET;TEXT;TITLE;TOPMARGIN;TRUESPEED;TYPE;URL;URN;USEMAP;VALIGN;VALUE;VLINK;
  281. Keyword8=VOLUME;VRML;VSPACE;WIDTH;WRAP
  282. Keyword9=
  283. Keyword10=
  284. Keyword11=
  285. Keyword12=
  286. Keyword13=
  287. Keyword14=
  288. Keyword15=
  289. Keyword16=
  290. Background=default
  291. Foreground=FF0000
  292.  
  293. [kSimbols]
  294. Type=keyword
  295. Context=102
  296. Scope=0
  297. Priority=6
  298. Keyword1=><Ð&ðÄËÏÖÜäëï ö"üÿ
  299. Keyword2=ÆÂÅÊÎÔÞÛâæåêîôßþû
  300. Keyword3=ÁÀÃÇÉÈÍÌÑÓÒØÕÚÙÝáàãçéèíìñóòøõúùý
  301. Background=Default
  302. Foreground=808080
  303.  
  304. [kScriptKeywords]
  305. Type=keyword
  306. Context=103
  307. Scope=4
  308. Priority=8
  309. WholeWordOnly=1
  310. Keyword1=And;As;Boolean;ByRef;Byte;ByVal;Call;Case;Class;Const;Currency;Debug;Dim;Do;Double;Each;Else;ElseIf;Empty;End;EndIf
  311. Keyword2=Enum;Eqv;Event;Exit;False;For;Function;Get;GoTo;If;Imp;Implements;In;Integer;Is;Let;Like;Long;Loop;LSet;Me;Mod;New;
  312. Keyword3=Next;Not;Nothing;Null;On;Option;Optional;Or;ParamArray;Preserve;Private;Public;Raise;Event;ReDim;Rem;Resume;RSet;
  313. Keyword4=Select;Set;Shared;Single;Static;Stop;Sub;Then;To;True;Type;TypeOf;Until;Variant;Wend;While;With;Xor
  314. Keyword5=runat;language;var
  315. Keyword6=
  316. Keyword7=
  317. Keyword8=
  318. Keyword9=
  319. Keyword10=
  320. Keyword11=
  321. Keyword12=
  322. Keyword13=
  323. Keyword14=
  324. Keyword15=
  325. Keyword16=
  326. Background=F9F9F9
  327. Foreground=0000FF
  328.  
  329. [kScriptKeywords2]
  330. Type=keyword
  331. Context=103
  332. Scope=4
  333. Priority=6
  334. WholeWordOnly=1
  335. Keyword1=script
  336. Background=default
  337. Foreground=800000
  338.  
  339. [kStyleKeywords]
  340. Type=keyword
  341. Context=104
  342. Scope=12
  343. Priority=6
  344. WholeWordOnly=1
  345. Keyword1=style
  346. Keyword2=
  347. Keyword3=
  348. Keyword4=
  349. Keyword5=
  350. Keyword6=
  351. Keyword7=
  352. Keyword8=
  353. Keyword9=
  354. Keyword10=
  355. Keyword11=
  356. Keyword12=
  357. Keyword13=
  358. Keyword14=
  359. Keyword15=
  360. Keyword16=
  361. Background=FFFFF2
  362. Foreground=800000
  363.  
  364. [kStyleKeywords2]
  365. Type=keyword
  366. Context=104
  367. Scope=12
  368. Priority=6
  369. WholeWordOnly=1
  370. Keyword1=type
  371. Keyword2=
  372. Keyword3=
  373. Keyword4=
  374. Keyword5=
  375. Keyword6=
  376. Keyword7=
  377. Keyword8=
  378. Keyword9=
  379. Keyword10=
  380. Keyword11=
  381. Keyword12=
  382. Keyword13=
  383. Keyword14=
  384. Keyword15=
  385. Keyword16=
  386. Background=FFFFF2
  387. Foreground=FF0000
  388.  
  389. [kCSSKeys]
  390. Type=keyword
  391. Context=105
  392. Scope=13
  393. Priority=10
  394. WholeWordOnly=1
  395. Keyword1=background;background-attachment;background-color;background-image;background-position;background-repeat;border;border-bottom;border-bottom-color;
  396. Keyword2=border-bottom-style;border-bottom-width;border-collapse;border-color;border-left;border-left-color;border-left-style;border-left-width;border-right;
  397. Keyword3=border-right-color;border-right-style;border-right-width;border-spacing;border-style;border-top;border-top-color;border-top-style;border-top-width;border-width;
  398. Keyword4=bottom;caption-side;clear;clip;color;content;counter-increment;counter-reset;cursor;direction;display;display;empty-cells;float;font;font-family;font-size;font-size-adjust;
  399. Keyword5=font-stretch;font-style;font-variant;font-weight;height;left;letter-spacing;line-height;list-style;list-style-image;list-style-position;list-style-type;margin;margin-bottom;
  400. Keyword6=margin-left;margin-right;margin-top;marker-offset;max-height;max-width;min-height;min-width;outline;outline-color;outline-style;outline-width;overflow;padding;padding-bottom;
  401. Keyword7=padding-left;padding-right;padding-top;position;quotes;right;table-layout;text-align;text-decoration;text-indent;text-shadow;text-transform;top;unicode-bidi;vertical-align;visibility;white-space;width;word-spacing;z-index;
  402. ;Keyword8=line;height;font;size;family
  403. Background=FFFFF2
  404. Foreground=FF0000
  405.  
  406. [kphp Char]
  407. Type=keyword
  408. Context=105
  409. Priority=10
  410. Scope=15
  411. WholeWordOnly=1
  412. Keyword1=<?;php
  413. Keyword2=?>
  414. Background=FFFFAD
  415. Foreground=default
  416. bold=0
  417. Outline=1
  418.  
  419. [kphp Keywords]
  420. Type=keyword
  421. Context=106
  422. Scope=15
  423. Priority=5
  424. WholeWordOnly=1
  425. Keyword1=break;case;default;echo;else;elseif;end;endif;endwhile;endswitch;exit;for;global;if;include;switch;while;foreach;do
  426. Keyword2=function;AbsAda_Close;Ada_Connect;Ada_Exec;Ada_FetchRow;Ada_FieldName;Ada_FieldNum;Ada_FieldType;Ada_FreeResult;Ada_NumFields;Ada_NumRows;Ada_Result;Ada_ResultAll;AddSlashes
  427. Keyword3=ASort;BinDec;Ceil;ChDir;ChGrp;ChMode;ChOwn;Chop;Chr;ClearStack;ClearStatCache;CloseDir;CloseLog;Cos;Count;Crypt;Date;dbList;dbmClose;dbmDelete;dbmExists;dbmFetch;dbmFirstKey;dbmInsert;dbmNextKey;dbmOpen;dbmReplace;DecBin;DecHex;DecOct;
  428. Keyword4=doubleval;End;ereg;eregi;ereg_replace;eregi_replace;EscapeShellCmd;Eval;Exec;Exp;fclose;feof;fgets;fgetss;File;FileATime;FileCTime;FileGroup;FileINode;FileMTime;FileOwner;FilePerms;FileSize
  429. Keyword5=FileType;Floor;Flush;FOpen;fputs;FPassThru;fseek;fsockopen;ftell;GetAccDir;GetEnv;getHostByName;getHostByAddr;GetImageSize;getLastAccess;getLastBrowser;getLastEMail;getLastHost;getLastMod;getLastref;getLogDir;getMyInode;GetMyPid;getMyUid;getRandMax;getStartLogging;getToday
  430. Keyword6=getTotal;GetType;gmDate;Header;HexDec;HtmlSpecialChars;ImageArc;ImageCharUp;ImageColorAllocate;ImageColorTransparent;ImageCopyResized;ImageCreate;ImageCreateFromGif;ImageDestroy;ImageFill;ImageFilledPolygon;ImageFilledRectangle;ImageFillToBorder;ImageGif;ImageInterlace;ImageLine;ImagePolygon
  431. Keyword7=ImageRectangle;ImageSetPixel;ImageString;ImageStringUp;ImageSX;ImageSY;InitSysLog;IntVal;IsSet;Key;Link;LinkInfo;Log;Log10;LogAs;Mail;Max;Md5;mi_Close;mi_Connect;mi_DBname;mi_Exec;mi_FieldName;mi_FieldNum;mi_NumFields;mi_NumRows;mi_Result;Microtime;Min;MkDir;MkTime;Next;ctDec;openDir;OpenLog;Ord;Parse_Str
  432. Keyword8=PassThru;pclose;pg_Close;pg_Connect;pg_DBname;pg_ErrorMessage;pg_Exec;pg_FieldName;pg_FieldPrtLen;pg_FieldNum;pg_FieldSize;pg_FieldType;pg_FreeResult;ph_GetLastOid;pg_Host;pg_NumFields;pg_NumRows;pg_Options;pg_Port;pg_Result;pg_tty;phpinfo;phpVersion;popen;pos;pow;Prev;PutEnv
  433. Keyword9=QuoteMeta;Rand;readDir;ReadFile;ReadLink;reg_Match;reg_Replace;reg_Search;Rename;Reset;return;rewind;rewindDir;RmDir;SetCookie;SetErrorReporting;SetLogging;SetShowInfo;SetType;shl;shr;sin;Sleep;Solid_Close;Solid_Connect;Solid_Exec;Solid_FetchRow;Solid_FieldName;Solid_FieldNum;Solid_FreeResult;Solid_NumFields;Solid_NumRows;Solid_Result
  434. Keyword10=Sort;Soundex;Sprintf;Sqrt;Srand;StrChr;StrTr;StripSlashes;StrLen;StrRChr;StrStr;StrTok;StrToLower;StrToUpper;StrVal;SubStr;Symlink;Syslog;System;Tan;TempNam;Time;Umask;UniqID;Unlink;UnSet;UrlDecode;UrlEncode;USleep;Virtual;print
  435. ;Background=FFFFAD
  436. Background=Default
  437. Foreground=0000FF
  438. bold=0